package cn.leelei.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.leelei.ssm.entity.User;
import cn.leelei.ssm.mapper.UserMapper;
import cn.leelei.ssm.service.UserService;

@Service("userService")
@Transactional
public class UserServiceImpl implements UserService {
	@Autowired
	private UserMapper userMapper;

	@Override
	public Integer SaveUser(User user) {
		// TODO Auto-generated method stub
		return userMapper.SaveUser(user);
	}

	@Override
	@Transactional(readOnly=true)
	public List<User> FindUserIfo(User user) {
		// TODO Auto-generated method stub
		return userMapper.FindUserIfo(user);
	}

	@Override
	@Transactional(readOnly=true)
	public User FindUserById(Integer id) {
		// TODO Auto-generated method stub
		return userMapper.FindUserById(id);
	}

}
